home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 0022-3.564 / dmg-0085 / 275.txt < prev    next >
Text File  |  1997-04-16  |  15KB  |  359 lines

  1. =========================================================================
  2.   
  3. INFO-ATARI16 Digest         Fri,  2 Mar 90       Volume 90 : Issue  275
  4.  
  5. Today's Topics:
  6.                          Bug in TURBO-C V1.0
  7.                       Calling callgulam from TC
  8.                           HD back-up & vault
  9.                       Need Help with 5.25 floppy
  10.             STE DMA sound (documentation posted) (3 msgs)
  11.                Supra's extended partitions and tos 1.4
  12. ----------------------------------------------------------------------
  13.  
  14. Date: 2 Mar 90 10:39:54 GMT
  15. From: sdcc6!sdcc10!mce@ucsd.edu  (Mark Edwards)
  16. Subject: Bug in TURBO-C V1.0
  17. Message-ID: <8098@sdcc6.ucsd.edu>
  18.  
  19. In article <1990Feb21.204744.560@agate.berkeley.edu>
  20.  ericco@stew.ssl.berkeley.edu (Eric C. Olson) writes:
  21. #roland@cochise.pcs.com (Roland Rambau) writes:
  22. #>hcj@lzsc.ATT.COM (HC Johnson) writes:
  23. #>->> >    #define MAX  -32768
  24. #>->> >    main()
  25. #>->> >    ?
  26. #>->> >    printf("1: %d\n", MAX);
  27. #>->> >    printf("2: %d\n", (int)MAX);
  28. #>->> >    ?
  29. #>->>
  30. #>->> This is not a bug, its a feature.  MAX is not a number, its an expression.
  31. #>->> Thus, the evaluation of MAX is a long int.  The first printf only prints
  32. #>->K&R specify that constants are int's.  Not a long int.
  33. #
  34. #Like I said "MAX is not a number, its an expression."  There is an integer
  35. #in the expression (the number 32768).  But there is also an operator (the
  36. #unary minus).  This makes MAX an expression, not a number.  Thus the real
  37. #question is what does K&R say integer expression are evaluated to?  I
  38. #don't have K&R handy, but I believe it says long ints.
  39. #
  40. K&R, second edition, section A8.2 type specifiers offers these useful quotes:
  41. 1. If the type specifier is mission from a declaration, it is taken to be an int
  42. 2. The signed specifier is useful for forcing char objects to carry a sign; it
  43.    is permissible but redundant with other integral types.
  44. 3. At most one of the words long or short may be specified together with int;
  45.    the meaning is the same if int is not mentioned.
  46.  
  47. IMHO, MAX is a constant expression. Since its type is unspecified, it is an
  48. int.  Since it is not specified as unsigned, and is an integral type, it is
  49. therefore a signed type.  Together the conclusion that MAX is a
  50. "const signed int MAX" when all the defaults are considered.  K&R say nothing
  51. about the issue of long or short.  Neither does section A7.4.5 on the unary
  52. minus operator.  The issue of long or short is probably best resolved in the
  53. traditional manner i.e. an integer is the size of the native machine word.
  54. This is 32 bits on a 68K.  A 8086 or 286 would be 16 bits by the same
  55. tradition.  The native int on the 68K is then a long int, and on the Intel
  56. it is a short int.  The expectation that short int means 16 bits and long
  57. int means 32 bits is still meaningful.  The answer to the question is
  58. machine architecture dependent.  For purposes of the discussion at hand, the
  59. 68K compiler should treat MAX as a signed 32 bit integer.
  60.  
  61. #Eric
  62. #ericco@ssl.berkeley.edu
  63. #
  64.  
  65.  
  66. --
  67. Mark C. Edwards             voice:      619/586-2204
  68. Associate Systems Analyst   unix:       mce@pbsdts.pacbell.com
  69. Matt 3:16-17,Acts 7:55-56,*John 8:17-18,*John 14:28,*Mark 13:32,
  70. *John 20:17,*Matt 12:31-32,*John 17:20-23 (* Red letters)
  71.  
  72. ------------------------------
  73.  
  74. Date: 2 Mar 90 08:46:28 GMT
  75. From: mcsun!sunic!tut!av74381@uunet.uu.net  (Vesterinen Arto Tapio)
  76. Subject: Calling callgulam from TC
  77. Message-ID: <3140@tutor.tut.fi>
  78.  
  79. In article <BAMMI.90Mar1044130@dsrgsun.ces.CWRU.Edu> bammi@dsrgsun.ces.CWRU.Edu
  80.  (Jwahar R. Bammi) writes:
  81. >       your example is correct. the reason it does'nt work from Turbo C
  82. >is that Turbo C passed the arguements in registers by default, while
  83. >gulam is expecting them to be on the stack (like the normal C stack
  84. >frame conventions). (is there a option in TC to do this??)
  85. >
  86.  
  87. There is a TC compiler option Standard stack frames. I tried it out, but
  88. I still get two bombs, oh well... :-(
  89.  
  90. ------------------------------
  91.  
  92. Date: 1 Mar 90 12:57:47 GMT
  93. From: umich!sharkey!cfctech!teemc!ka3ovk!irscscm!root@CS.YALE.EDU  (Admin)
  94. Subject: HD back-up & vault
  95. Message-ID: <1990Mar1.125747.17839@irscscm>
  96.  
  97. I have always been leary of using a hard drive back-up program and
  98. have always done it by hand.  But now I've decided to change my ways
  99. and have begun to use vault.  It seems to work very well so far but I
  100. haven't spent enough time with to be sure yet.  What is everyone
  101. else's opinion of vault?
  102.  
  103. One thing that has been happening to me is that occasionally my system
  104. locks up upon selecting an item from the drop-down menu of vault.
  105. When selecting QUIT, 3 bombs appear before the system locks.  Has this
  106. stuff been happening to anyone else?  Is it possible I got a bad
  107. download of vault (though it uudecoded and un-arced with no errors).
  108.  
  109. Marshall Lake
  110. mlake@irscscm.UUCP
  111.  
  112. ------------------------------
  113.  
  114. Date: 2 Mar 90 16:16:01 GMT
  115. From: jensen@cod.nosc.mil  (Layne K. Jensen)
  116. Subject: Need Help with 5.25 floppy
  117. Message-ID: <1808@cod.NOSC.MIL>
  118.  
  119. I have finished (?) installing a 5.25-in floppy drive on my 1040ST, but
  120. have run into what to my untrained eye appears to be a catch-22 situation
  121. on boot-up.  I haven't seen this discussed before, so I think there must be
  122. a simple explanation/fix.  Just for the record, this is an Epson drive.
  123.  
  124. If the floppy head isn't near track 0 at boot time, there is a vibrating
  125. sound from the drive, and it appears that the drive is trying to seek to
  126. track 0, but not succeeding, presumably because at that point the step rate
  127. hasn't yet been slowed down to 6 msec.  Therefore the drive doesn't find
  128. track 0, the computer doesn't see the TRACK 0 signal asserted, and the
  129. computer comes to the conclusion that there is no drive B.
  130.  
  131. Even though the program to set the seek rate is now executed from the
  132. AUTO directory, it doesn't matter, as the computer has given up.  So I can't
  133. run a program that parks the heads on drive B.  And on re-booting the whole
  134. problem repeats itself.
  135.  
  136. What do you do about this situation?  At this point my drive is in the open,
  137. so I manually reset the head before powering up the drive, but once it is in
  138. its case that won't be an option.  Is there a program available to park the
  139. head before turning off the drive?  (I know I'll forget to run it half the
  140. time.)  How about a program to tell the computer that there really *is* a
  141. drive B after all, stuffing some information into a magic memory location?
  142. I don't have any documentation that would tell me about such locations.
  143.  
  144. Do other types of drives manage to find track 0 even without the step
  145. rate change?
  146.  
  147. Any help this would be appreciated.
  148.  
  149. Layne Jensen                           jensen@nosc.MIL
  150. Naval Ocean Systems Center             ...!sdcsvax!noscvax!jensen
  151. San Diego, CA
  152. --
  153. Layne Jensen                           jensen@nosc.MIL
  154. Naval Ocean Systems Center             ...!sdcsvax!noscvax!jensen
  155. San Diego, CA
  156.  
  157. ------------------------------
  158.  
  159. Date: 2 Mar 90 04:57:49 GMT
  160. From:
  161.  zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!uvaarpa!murdoch!
  162.  astsun8.astro.Virginia.EDU!gl8f@tut.cis.ohio-state.edu  (Greg Lindahl)
  163. Subject: STE DMA sound (documentation posted)
  164. Message-ID: <1990Mar2.045749.24902@murdoch.acc.Virginia.EDU>
  165.  
  166. In article <1990Mar1.183809.4264@bath.ac.uk> exspes@bath.ac.uk (P E Smee)
  167.  writes:
  168. [ about the abacus gem books ]
  169. >
  170. >Does this mean they've fixed them, then?
  171.  
  172. Well, my experience with the Abacus GEM book (which is better than
  173. their others, I think) is that the errors in the 1st edition fall in 3
  174. areas:
  175.  
  176. 1) obvious typoes, easy to correct, some only after a little
  177.    experimentation :-(
  178. 2) errors which are copies of errors in DRI's documentation (which
  179.    Atari sells in its devkit)
  180. 3) failing to explain which calls are only useful when GDOS is
  181.    around. I've seen several people asking questions here who
  182.    obviously tried to read the manual and were very confused on this
  183.    score.
  184.  
  185. As such, I've had reasonable success using it for some small GEM
  186. stuff, although I never tried anything with GDOS.
  187.  
  188. I haven't read the 3rd edition, but I believe a review was once posted
  189. here? I also don't know if any of the GEM books have useful tricks
  190. like the little routine that intercepts right-button events and turns
  191. them into left-button events. I'd also love to see someone do a SANE
  192. binding for GEM calls that passes pointers to structures instead of a
  193. bunch of variables that everyone keeps in structs anyway. I managed to
  194. cut the size of the GEM demo program source in half that way, and the
  195. object code for the demo itself (sans bindings) shrank 35% or so. Less
  196. bloody stack-pushing and popping for stuff that's going to get popped
  197. and shoved into arrays anyway.
  198.  
  199. >My present favorites are the 3-volume Compute! series (one book each on
  200. >AES, VDI, and TOS) and Katherine Peel's 'The Concise Atari ST 68000
  201. >Programmer's Reference Guide' -- but not the first edition which was
  202. >lacking any form of index.
  203.  
  204. Indexes do come in handy.
  205.  
  206. Greg Lindahl
  207. gl8f@virginia.edu                                  Astrophysicists for Choice.
  208.  
  209. ------------------------------
  210.  
  211. Date: 1 Mar 90 15:35:27 GMT
  212. From:
  213.  zaphod.mps.ohio-state.edu!samsung!cs.utexas.edu!asuvax!hrc!force!covertr@tut.ci
  214.  s.ohio-state.edu  (Richard E. Covert)
  215. Subject: STE DMA sound (documentation posted)
  216. Message-ID: <48ef7017.14a1f@force.UUCP>
  217.  
  218. In article <37193@iuvax.cs.indiana.edu>, kclenden@silver.ucs.indiana.edu (Kevin
  219.  Clendenien) writes:
  220. >
  221. >    As far as having to spend a couple of hundred bucks just to get
  222. > information on your machine, this is no different than IBM, Mac, or
  223. > Amiga computers.  When you buy IBM and DOS, do you get a technical
  224. > reference manual?  NO!  Sure it's available, but at a cost.  This
  225. > same scenario is played out with both Mac and Amiga computers.  You
  226. > can find information on the Atari line of computers without having
  227. > to become a developer.  But, just as with the above mentioned
  228. > computers, you will have to pay for it.  I wish information was
  229. > free, but we all know that just ain't so.  Knowledge makes the world
  230. > go round.  Not just in the computer field, but in every field.
  231.  
  232.  
  233. Horse pukey!!!
  234.  
  235.  
  236. Apple gives much better support and much of it is free!!
  237.  
  238. Just read the mac.binaries newsgroup. Apple is always posting
  239. Macintosh Technical Notes there (which unfortunately ar BinHexed and
  240. can't be read on UNIX machines!).
  241.  
  242. Just in the last couple of days Apple posted over a dozen Technical Notes
  243. covering various aspects of System 7 and Hypercard and other subjects.
  244.  
  245. It makes me jealous to see some much technical information being so freely
  246. deseminated!! And Atari Corp has the nerve to criticize a magazine reporter
  247. for publishing programming notes on the STe! Geez, with Apple, you would have
  248. seen the Mac Tech Notes BEFORE a reporter had a chance to "link" them.
  249.  
  250. Just goes to show you the difference between a REAL COMPUTER COMPANY and
  251. A GAMES MACHINE COMPANY!!
  252.  
  253. And as far as buying Tech Books, there are hundreds of programming and technical
  254. and self-help books for the Macintosh. Except for Turner's self-published books,
  255. there hasn't been a new ST book published in the USA for 2 years!!
  256.  
  257. Argh!!! And Atari Corp has the nerve to criticize a reporter for publishing
  258. notes about an Atari computer (actually the STe is better classified as a
  259. games machine!. I don't need stereo sound for DTP! ).
  260.  
  261.  
  262. --
  263.  Richard E. Covert, Lead Engineer of Software Tools Group
  264.  AG Communications Systems, Phoenix AZ   (602) - 581-4652
  265.  TCP/IP: covertr@gtephx
  266.  UUCP: ?ncar!noao!asuvax | uunet!zardoz!hrc | att?!gtephx!covertr
  267.  
  268. ------------------------------
  269.  
  270. Date: 1 Mar 90 15:51:00 GMT
  271. From: cs.utexas.edu!asuvax!hrc!force!covertr@tut.cis.ohio-state.edu  (Richard E.
  272.  Covert)
  273. Subject: STE DMA sound (documentation posted)
  274. Message-ID: <48ef7e01.14a1f@force.UUCP>
  275.  
  276. In article <1990Feb27.230234.8875@murdoch.acc.Virginia.EDU>,
  277.  gl8f@astsun8.astro.Virginia.EDU (Greg Lindahl) writes:
  278. > I have 2 books which tell me just about every software question I've
  279. > had about the ST. Cost? $45. Sometimes I think I live in a different
  280. > universe from everyone else. If you buy a copy of Mark Williams or
  281. > Laser C, you get an excellent GEM manual. You can also mail-order
  282. > books about GEM if your dealer doesn't carry them.
  283. >
  284. > So what's the complaint? I keep on asking what people don't like about
  285. > current ST books. I haven't seen (yet) a single person who has
  286. > actually read the 3rd edition Abacus GEM book, or one of the other
  287. > good GEM books, and thought that it had lots of errors. Although some
  288. > dealers don't carry them, they are available mail-order, and you can
  289. > find ads for them in magazines.
  290. >
  291. > Where's the beef?
  292. >
  293. > -- greg
  294. > Greg Lindahl
  295. > gl8f@virginia.edu                                  Astrophysicists for Choice.
  296.  
  297.  
  298. Where's the beef??
  299.  
  300. Well, for one there is the still the fact that no NEW ST book has
  301. been published in the USA for 2 years.
  302.  
  303. And the fact, that even Greg admits, that you can't buy *ANY* ST book
  304. in the major bookstores. Just ask someone in a Waldenbooks store and you
  305. will either get laughed at or they will mutter something about the Atari
  306. just being a "Games Machine"
  307.  
  308. Greg, are you on a paid retainer by Atari Corp?? I have *NEVER* seen you
  309. take a stand criticizing Atari Corp on *ANY* matter?? If you aren't,
  310. you should ask Atari Corp to pay you !!
  311.  
  312. But, you are correct, the Mark Williams C manual is a great source of C code
  313. for GEM AES/VDI.
  314.  
  315. But where do you go for info on programming for GDOS?? GDOS is one big black
  316.  hole
  317. as far as Atari Corp is concerned. It isn't covered in any C book that I have.
  318. And programmers are all having problems writing GDOS printer drivers.
  319.  
  320. So, where's the beef?? I would answer "In Sunnyvale!!"
  321.  
  322. (At least there's lots of beef by-products emitting from Sunnyvale judging
  323. the strength of the odors!).
  324.  
  325. Opinions are my own, but are for sale. Send MegaBucks.
  326. --
  327.  Richard E. Covert, Lead Engineer of Software Tools Group
  328.  AG Communications Systems, Phoenix AZ   (602) - 581-4652
  329.  TCP/IP: covertr@gtephx
  330.  UUCP: ?ncar!noao!asuvax | uunet!zardoz!hrc | att?!gtephx!covertr
  331.  
  332. ------------------------------
  333.  
  334. Date: Fri, 2 Mar 90 15:08+0100
  335. From: Ritzert%DMZRZU71.BITNET@Forsythe.Stanford.EDU
  336. Subject: Supra's extended partitions and tos 1.4
  337. Message-ID: <900302140852.561040@DMZRZU71-UNI-MAINZ--GERMANY>
  338.  
  339. Jim Hurley wrote:
  340.  
  341. >I just upgraded to TOS 1.4 and was wondering if I can
  342. >now have a partition size greater than 16Meg. My SUPRA
  343. >utilities will let me make one, but complain that GEMDOS won't
  344. >support it. Thanks in advance.
  345.  
  346. Ignore this message. It works without problems under *tos1.4*. I am using
  347. Supra's software with 23 Meg partitions without having any problems. The
  348. older tos-versions, however, cannot handle Supra's extended partitions.
  349.  
  350. Hope this helps
  351.  
  352. Michael Ritzert
  353. mjr@dmzru71.bitnet
  354.  
  355. ------------------------------
  356.  
  357. End of INFO-ATARI16 Digest V90 Issue #275
  358. *****************************************
  359.